package com.mi.service;


import java.util.List;

import com.mi.entity.ApplicationEntity;
import com.mi.entity.MyPages;
import com.mi.entity.RecruitEntity;

//招聘服务
public interface RecruitService {

    //查询所有招聘信息
    public List<RecruitEntity> queryRecruits(RecruitEntity re);

    //根据id查询招聘信息
    public RecruitEntity queryRecruitByid(int r_id);

    //添加应聘信息
    public boolean application(ApplicationEntity ae);

    /**
     * 查询招聘信息
     * @param re
     * @return
     */
    public MyPages<RecruitEntity> queryRecruitss(RecruitEntity re);

    /**
     * 查询单个招聘信息
     * @param re
     * @return
     */
    public RecruitEntity queryRecruit(RecruitEntity re);

    /**
     * 查询应聘信息
     * @param applicationEntity
     * @return
     */
    public MyPages<ApplicationEntity> queryApplications(ApplicationEntity applicationEntity);

    /**
     * 查询单个应聘信息
     * @param applicationEntity
     * @return
     */
    public ApplicationEntity queryApplication(ApplicationEntity applicationEntity);

    /**
     * 更改状态
     * @param applicationEntity
     * @return
     */
    public boolean updApplicationStatus(ApplicationEntity applicationEntity);

    /**
     * 删除应聘信息
     * @param ids
     * @return
     */
    public boolean delApplication(String[] ids);

    /**
     * 更改状态
     * @param re
     * @return
     */
    public boolean updRecruitStatus(RecruitEntity re);

    /**
     * 删除招聘信息
     * @param ids
     * @return
     */
    public boolean delRecruit(String[] ids);

    /**
     * 添加招聘信息
     * @param recruitEntity
     * @return
     */
    public boolean addRecruit(RecruitEntity recruitEntity);

    /**
     * 修改招聘信息
     * @param recruitEntity
     * @return
     */
    public boolean updRecruit(RecruitEntity recruitEntity);

    /**
     * 修改招聘信息
     * @param recruitEntity
     * @return
     */
    public boolean updRecruitNumber(RecruitEntity recruitEntity);

}
